<template>
  <div style="margin:0 auto;">
    <div style="width:100%;height:calc(100vh + 32px);margin:-153px 0px 0px 4px;">
      <iFrame :src="'/crm-web/html/huap/user/autoIndex.jsp?userCode=''+userId+'&rolId='+rolId+'&goUrl='+path" width="100%" height="100%" frameborder="0" scrolling="auto">
      </iFrame>
      <!--
      <iFrame :src="'http://10.114.10.170:9999/crm-web/html/huap/user/autoIndex.jsp?userCode=0057034'+'&goUrl='+path" width="100%" height="100%" frameborder="0" scrolling="auto">
      </iFrame> -->
    </div>
  </div>
</template>

<script>
export default {
      watch:{
        '$route':'gotPath'
      },
      data(){
        return {
          path:'',
          userId:'',
          rolId:''
        }
      },
      created(){
        this.gotPath()
        // console.log(sessionStorage.getItem('jifenuserName'),123)
        // console.log(sessionStorage.getItem('jifenuserId'),1243)
      },
      methods:{
            gotPath(){
              this.path = this.$route.path
              this.userId = sessionStorage.getItem('jifenuserId')
              console.log(this.$route.path)
            }
           
      }
}
</script>